package com.example.springhelloworldsample1

import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController


@RestController
@RequestMapping
class HelloWorldController {

    @RequestMapping(value = arrayOf("/hello","world"), method = arrayOf(RequestMethod.GET))
    fun hello():String{
        return "hello"
    }
}